package fr.vahren.dotastrat.gui;

import com.trolltech.qt.core.QSize;
import com.trolltech.qt.core.Qt.AspectRatioMode;
import com.trolltech.qt.gui.QLabel;
import com.trolltech.qt.gui.QPixmap;

public class D2SHeroPortrait extends QLabel {

	private QPixmap mapImage;

	public D2SHeroPortrait() {
		// create a PixMap to display the portrait
		QPixmap map = new QPixmap("res/map.png");
		mapImage = map.scaled(new QSize(100, 100),
				AspectRatioMode.KeepAspectRatio);
		setPixmap(mapImage);
		setFixedSize(100, 100);
	}
}
